﻿package com.sgcc.nfc.lock.domain.usecase

import com.sgcc.nfc.lock.core.network.NetworkResult
import com.sgcc.nfc.lock.domain.model.Region
import com.sgcc.nfc.lock.domain.repository.RegionRepository
import javax.inject.Inject

class GetRegionChildrenUseCase @Inject constructor(
    private val repository: RegionRepository
) {
    suspend operator fun invoke(parentId: Long?): NetworkResult<List<Region>> =
        repository.getRegionChildren(parentId)
}
